package perl.compiler.utils;

import java.util.ArrayList;
import java.util.List;

public class Node<T> {
    	
        private T data;
        private Node<T> parent;
        private Node<T> left;
        private Node<T> operation; //????
        private Node<T> right;
        //private List<Node<T>> children;
        
        
		public T getData() {
			return data;
		}
		public Node(T data, Node<T> parent) {
			super();
			this.data = data;
			this.parent = parent;
		}
		
		public void setData(T data) {
			this.data = data;
		}
		public Node<T> getParent() {
			return parent;
		}
		public void setParent(Node<T> parent) {
			this.parent = parent;
		}
		public Node<T> getLeft() {
			return left;
		}
		public void setLeft(Node<T> left) {
			this.left = left;
		}
		public Node<T> getRight() {
			return right;
		}
		public void setRight(Node<T> right) {
			this.right = right;
		}
		
}
